
#include "movedirection.h"

//MoveDirection::MoveDirection(QObject *parent)
//{

//}

MoveDirection::MoveDirection(QPoint _pos, QPixmap _pixmap, int _type)
{
    this->setPos(_pos);
    this->setPixmap(_pixmap);
    this->MoveDirectionType = _type;
    Speed = 6;

}

void MoveDirection::DMove(QPoint _dir)
{
    this->moveBy(_dir.x()*Speed,_dir.y()*Speed);

}


